import java.util.*;

/**
 * This class stores information about a line item a user has ordered.
 */
public class LineItem {

    private int item;
    private int quantity;
    private Date deliveryDate;

    /**
     * Default constructor
     */
    public LineItem() {
        this(0, 0, new Date());
    }

    /**
     * More detailed constructor: sets all line item information on creation
     *
     * @param item
     * @param quantity
     * @param deliveryDate
     */
    public LineItem(int item, int quantity, Date deliveryDate) {
        this.item = item;
        this.quantity = quantity;
        this.deliveryDate = deliveryDate;
    }

    /**
     * @return Returns the delivery date
     */
    public Date getDeliveryDate() {
        return deliveryDate;
    }

    /**
     * Sets the delivery date
     *
     * @param deliveryDate
     */
    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    /**
     * @return Returns the product being ordered
     */
    public int getItem() {
        return item;
    }

    /**
     * Sets the product being ordered
     *
     * @param item
     */
    public void setItem(int item) {
        this.item = item;
    }

    /**
     * @return Returns the quantity of the item requested
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * Sets the quantity of the item requested
     *
     * @param quantity
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

}
